package org.csu.demopetstore.Persistence;

import org.apache.ibatis.annotations.Param;
import org.csu.demopetstore.entity.LineItem;
import org.csu.demopetstore.entity.Order;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;


@Repository
public interface OrderMapper {

    void insertOrder(Order order);
    Order getOrderByID(int orderId);
    List<Order> getListOrder(String username);

    List<LineItem> getLineItem(int orderId);
    void insertLineItem(LineItem lineItem);

    int getCount();

    void insertOrderStatus(@Param("orderId")int orderId,@Param("num") int num, @Param("orderDate")Date orderDate,@Param("status")String status);

}
